import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);

import state from './state.js'
import mutations from './mutation.js'
import actions  from './actions.js';
import getters from "./getters";

//引入自定义的状态模块文件：
import shop from './modules/shop.js'
import cate from './modules/cate.js'


export default new Vuex.Store({
    state,
    mutations,
    actions,
    getters,
    modules:{
        shop,
        cate
    }
 })